package drds.binlog.common.position;

import drds.binlog.common.Authors;
import drds.common.Author;
import lombok.Getter;
import lombok.Setter;

import java.net.InetSocketAddress;

@Author(name = Authors.LI_YANG)
public class LogIdentity extends Position
{
    @Setter
    @Getter
    private InetSocketAddress socketAddress;                          // 链接服务器的地址
    @Setter
    @Getter
    private Long slaveId;                                // 对应的slaveId

    public LogIdentity()
    {
    }

    public LogIdentity(InetSocketAddress socketAddress, Long slaveId)
    {
        this.socketAddress = socketAddress;
        this.slaveId = slaveId;
    }


}
